﻿using Microsoft.AspNetCore.Builder;

namespace Project.Core.Config.Config.Swagger {
    public static class AppSwaggerExtensions {
        public static IApplicationBuilder UseLibrarySwagger(this IApplicationBuilder app) {
            app.UseSwagger();
            app.UseSwaggerUI(c => {
                c.SwaggerEndpoint($"/swagger/V1/swagger.json", $"XUnit.Core V1");
                c.RoutePrefix = string.Empty;
            });
            return app;
        }
    }
}